﻿
// Copyright © 2009 Mehdi Golchin. All rights reserved.

namespace TinyMceWrapper.Configuration
{

    #region [ Imports ]

    using System.Configuration;

    #endregion

    public sealed class TinyMceDisplayModeCollection : ConfigurationElementCollection
    {

        #region [ Indexers ]

        public TinyMceDisplayMode this[int index]
        {
            get { return base.BaseGet(index) as TinyMceDisplayMode; }
        }

        public new TinyMceDisplayMode this[string name]
        {
            get { return base.BaseGet(name) as TinyMceDisplayMode; }
        }

        #endregion

        #region [ Override Members ]

        protected override ConfigurationElement CreateNewElement()
        {
            return new TinyMceDisplayMode();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((TinyMceDisplayMode)element).Name;
        }

        #endregion

    }

}
